<?php
require_once('./admin/connexion.php');
require ('./func.req.php');
if (mysql_num_rows($result_info) == 0) {
    ?>
    <link rel="stylesheet" type="text/css" href="./css/style.css" title="" media="all" />
    <div id="box" onclick="document.getElementById('box').style.display='none';" style="margin:20%;" class="error-box rounded" title="Fermer la fen&ecirc;tre">
        L'installation n'a pas encore &eacute;t&eacute; r&eacute;alis&eacute;e. <a href="./install/index.php">Cliquez ici</a> pour commencer.
    </div>
    <?php
} else if ($line_info['maintenance_choix_info'] == "Oui") {
    show_maintenance();
} else {

    /*
      -----------------------------------
      ---- SCRIPT D'AUTHENTIFICATION ----
      FujiCraft V3.0
      By Fujido
      Contact : thefujido@gmail.com
      -----------------------------------
     */

    session_start(); // On relaye la session
    if (@session_is_registered("authentification")) { // v�rification sur la session authentification (la session est elle enregistr�e ?)
// ici les �ventuelles actions en cas de r�ussite de la connexion
    } else {
        header("Location:login.php?erreur=needlog"); // redirection en cas d'echec
    }

// GESTION DE LA D�connexion
    if (isset($_GET['erreur']) && $_GET['erreur'] == 'logout') { // Test sur les param�tres d'URL qui permettront d'identifier un "contexte" de d�connexion
        $prenom = $_SESSION['prenom']; // On garde le pr�nom en variable pour dire au revoir (soyons polis :-)
        @session_unset("authentification");
        header("Location:login.php?erreur=logout");
    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title><?php echo $site; ?> | Jobs - Gestion de mes Jobs</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta http-equiv="Content-Style-Type" content="text/css" />
            <meta http-equiv="content-language" content="fr,en" />
            <link rel='shortcut icon' type="image/x-icon" href='./images/favicon.ico' />
            <link rel="stylesheet" type="text/css" href="./css/style.css" title="" media="all" />
            <link rel="stylesheet" type="text/css" href="./css/tab_news.css" title="" media="all" />
            <link rel="stylesheet" type="text/css" href="./css/news.css" title="" media="all" />
            <link rel="stylesheet" type="text/css" href="./css/tab_pad.css" title="" media="all" />
            <script type="text/javascript" src="./js/news.js"></script>
        </head>
        <body>
            <div id="block">
                <div id="contentblock">
                    <div class="wrapper">
                        <?php
                        show_header();
                        show_menu();
                        show_newsbox();
                        show_userbox();
                        $user_server = $_SESSION['login'];
                        $query = "SELECT * FROM " . $database . "." . $tb_iconomy . " WHERE username = '$user_server' ";
                        $result = @mysql_query($query) OR DIE("Erreur de la s&eacute;lection de votre compte iConomy : " . mysql_error());
                        $line = mysql_fetch_assoc($result);
                        ?>
                        <div class="mainbox">
                            <h2>Jobs - Gestion de mes Jobs</h2>
                            <br />
                            <center>
                                <div id="box" onclick="document.getElementById('box').style.display='none';" class="info-box rounded" title="Fermer la fen&ecirc;tre">
                                    Le codage de la gestion du plugin "Jobs" n'est pas encore termin&eacute;e.
                                </div>
                            </center>
                            <br />
                        </div>
                        <?php show_footer(); ?>
                    </div>
                </div>
            </div>
        </body>
    </html>
<?php } ?>